﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AttentenceCheckSystem
{
    /// <summary>
    /// TabBG.xaml 的交互逻辑
    /// </summary>
    public partial class TabBG : UserControl
    {
        public TabBG()
        {
            InitializeComponent();
        }

        public int Text
        {
            set{
                switch (value)
                {
                    case 0:
                        _Text.Text = "星期天";
                        break;
                    case 1:
                        _Text.Text = "星期一";
                        break;
                    case 2:
                        _Text.Text = "星期二";
                        break;
                    case 3:
                        _Text.Text = "星期三";
                        break;
                    case 4:
                        _Text.Text = "星期四";
                        break;
                    case 5:
                        _Text.Text = "星期五";
                        break;
                    case 6:
                        _Text.Text = "星期六";
                        break;
                }
            }

        }
    }
}
